package com.efast.dmom.aps;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableDiscoveryClient
@EnableSwagger2
@EnableAutoConfiguration(exclude = {PageHelperAutoConfiguration.class})
@ComponentScan(basePackages ={"com.efast.cafe.framework","com.efast.cafe.commponent","com.efast.dmom.aps"})
@EnableFeignClients(basePackages={"com.efast.cafe.portal.remote"})
public class DmomApsApplication extends SpringBootServletInitializer {


	public static void main(String[] args) {
		SpringApplication.run(DmomApsApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return super.configure(builder);
	}

	

}
